package com.kang.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kang.entity.SysMenu;
import com.kang.entity.SysRole;
import com.kang.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kang.vo.SysUserQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author yuhongkang
 * @since 2023-01-04
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUser> selectByPage(IPage<SysUser> page, @Param("vo") SysUserQueryVo sysUserQueryVo);

    List<SysMenu> selectMenuBuUserId(@Param("userId") Integer userId);

    List<String> selectRoleNameByUserId(@Param("userId") Integer userId);
}
